//
//  DataHandler.h
//  AroundTheWorld
//
//  Created by IfelseGo on 16/5/15.
//  Copyright © 2016年 IfelseGo an. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MBProgressHUD.h"
#import "RecoummendKJNMDataodel.h"

typedef void (^SucceedHandler)(id result);
typedef void (^FailedHandler)(NSError *error);

@interface DataHandler : NSObject

//推荐
- (void)getRecommend:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;
- (void)getHotTravelNotes:(NSInteger )nextPage SucceedHandler:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;
@property (nonatomic, assign) NSInteger hotTravelPageNumber;

- (void)getRecoummendKJNNotes:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;
- (void)getRecoummendKJNDataNotes:(NSString *)kjnID SucceedHandler:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;
- (void)getRecoummendHotelDataNotes:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;
- (void)getRecoummendHotelDataCityNotes:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;
- (void)getSubjectMoreNotes:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;
- (void)getDiscountMoreNotes:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;
- (void)getDiscountMoreDataNotes:(NSString *)contryName SucceedHandler:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;
- (void)getSearchHistory:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;

//目的地
- (void)getDestinationBase:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;
- (void)getDestinationCounty:(NSString *)countyID succeedHandler:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;
- (void)getDestinationCountyDiscountSuper:(NSString *)countyID succeedHandler:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;
- (void)getDestinationCountyDiscountWonderful:(NSString *)countyID succeedHandler:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;

//社区
- (void)getCommunityBase:(NSInteger )nextPage SucceedHandler:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;
- (void)getCommunityHotCommentSeachDataNotes:(NSString *)contryName SucceedHandler:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;
- (void)getCommunityEnterLayoutBase:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;
- (void)getCommunityFindTravellMenuBase:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;
- (void)getCommunityFindTravellBase:(NSInteger )nextPage SucceedHandler:(SucceedHandler)succeedHandler failedHandler:(FailedHandler)failedHandler;

@end
